//
//  HttpClient.h
//  YangLiuQing(OC)
//
//  Created by wxc on 2018/2/1.
//  Copyright © 2018年 wxc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "NSDictionary+DeleteNull.h"
#import <SVProgressHUD/SVProgressHUD.h>
#import <AFNetworking.h>
@interface HttpClient : NSObject

+(void)PostUrl:(NSString *)url parameters:(NSDictionary *)dic success:(void (^)(id json,NSInteger flag))success fail:(void (^)(NSError *error))fail;

+(void)PostUrl_svpdiss:(NSString *)url success:(void (^)(id json,NSInteger flag))success fail:(void (^)(NSError *error))fail;



+(void)HttpPost:(NSString *)url
    parameters:(NSDictionary *)dic
       message:(NSString *)msg
       success:(void (^)(id json,NSInteger flag))success
          fail:(void (^)(NSError *error))fail;

+ (void)HttpPostImgWithURL:(NSString *)url
                 Imagename:(NSString *)name
                 ImageData:(NSData *)image
            withParameters: (NSDictionary *) dic
      withUIViewController:(UIViewController *)viewController
     ImgCompressionQuality:(CGFloat)compressionQuality
       UpLoadProgressBlock:(void (^)(float Progress))ProgressBlock
         UpLoadWithSuccess:(void (^)(id result))success
         UpLoadWithFailure:(void (^)(NSError *error))failure
             networkError : (void (^)(BOOL isNetworkError))networkError;

@end
